<html>

<head>
    <title>路线管理</title>

    <link href="../../../statics/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../../statics/styles/navbar.css" rel="stylesheet" />




    <style>
        .side-menu {
            margin-top: 50px;
        }
    </style>

</head>

<body>

    <nav class="navbar navbar-default" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#hompage-navbar-collapse">
                    <span class="sr-only">切换导航</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#"><span class="my-brand-2">联盟物流</span></a>
            </div>

            <div class="collapse navbar-collapse" id="hompage-navbar-collapse">
                <div class="container">
                    <div class="row">
                        <div class="container">
                            <ul class="nav navbar-nav">
                                <li><a href="#">货运物流</a></li>
                                <li><a href="#">快递物流</a></li>
                                <li><a href="#">查找物流</a></li>
                                <li><a href="#">物流报表</a></li>
                            </ul>
                            <ul class="nav navbar-nav navbar-right">
                                <li><a href="#">收藏到收藏夹</a></li>
                                <li><a href="#">收藏到桌面</a></li>
                                <li><a href="#">登录</a></li>
                                <li><a href="#">注册</a></li>
                                <li><a href="#">手机版</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <div class="container">
        <div div="row">
            <div class="col-sm-2">
                <div class="list-group">
                    <a href="#" class="list-group-item list-group-item-warning ">我的订单</a>
                    <a href="#" class="list-group-item list-group-item-warning ">报表取数</a>
                    <a href="#" class="list-group-item list-group-item-warning">查询记录</a>
                    <a href="#" class="list-group-item list-group-item-warning">我的资料</a>
                    <a href="#" class="list-group-item list-group-item-warning active">路线管理</a>
                </div>
            </div>
            <div class="col-sm-10">
                <div class="row">
                    <div class="panel panel-default">
                        <div class="panel-heading">修改网点</div>
                        <div class="panel-body">
                            <form role="form" class="form-horizontal">
                                <div class="row">

                                    <div class="form-group">
                                        <label for="inputLocation" class="col-sm-2 control-label">所在地:</label>
                                        <div class="col-sm-3">
                                            <div class="input-group">
                                                <input id="inputLocation" type="text" class="form-control" placeholder="" desabled>
                                                <input id="inputLocationHidden" type="hidden" class="form-control" placeholder="">
                                                <div class="input-group-btn">
                                                    <button id="btnLocation" type="button" class="btn btn-default"><span class="glyphicon glyphicon-globe"></span></button>
                                                </div>
                                            </div>
                                        </div>

                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"><span class="text-warning">*</span>网点名称:</label>
                                        <div class="col-sm-3">
                                            <input type="text" class="form-control" name="networkName">
                                        </div>

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">详细地址:</label>
                                        <div class="col-sm-5">
                                            <input class="form-control" name="adress" type="text">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">联系人:</label>
                                        <div class="col-sm-3">
                                            <input class="form-control" name="contactName" type="text">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">联系电话</label>
                                        <div class="col-sm-3">
                                            <input class="form-control" name="phoneNo" type="tel">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">QQ:</label>
                                        <div class="col-sm-3">
                                            <input class="form-control" name="qq" type="text">
                                        </div>
                                    </div>







                                    <!-- /input-group -->
                                    <button type="submit" class="btn btn-success col-sm-offset-2">保存</button>
                                    <button type="button" class="btn btn-warning">取消</button>
                                </div>
                            </form>
                        </div>

                    </div>

                </div>


            </div>

        </div>
    </div>




    <!-- Large modal -->

    <div id="myRegionSelectorModal" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">地区选择</h4>
                </div>
                <div class="modal-body">
                    <div class="container" id="divRegionSelector"></div>
                </div>

            </div>
        </div>
    </div>


    <script src="../../../statics/js/jquery-3.1.1.min.js"></script>
    <script src="../../../statics/bootstrap/js/bootstrap.min.js"></script>
    <script src="../../../statics/echarts/echarts.min.js"></script>
    <script src="../../../statics/js/regionselector.js"></script>


    <script>
        $(function () {
            //地图选择器
            var myRegionSelector = regionselector.init('divRegionSelector');
            myRegionSelector.click(function (param) {
                alert(param.value);

            });

            //始发地选择
            $('#btnLocation').click(function () {
                myRegionSelector.reset();
                $('#myRegionSelectorModal').modal();
                myRegionSelector.click(function (param) {
                    $('#inputLocation').val(param.text);
                    $('#inputLocationHidden').val(param.value);
                    $('#myRegionSelectorModal').modal('hide');

                });
            });


        })
    </script>

</body>

</html>